package com.arpa.oms.service;

import com.arpa.oms.domain.dto.OmsOutboundItemDTO;
import com.arpa.oms.domain.entity.OmsOutboundItem;
import com.arpa.oms.domain.vo.OmsOutboundItemVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * OMS出库单明细 服务类
 * </p>
 *
 * @author LEO
 * @since 2020-11-07
 */
public interface IOmsOutboundItemService extends IService<OmsOutboundItem> {

    /**
     * 保存
     * @param entity
     * @return
     */
    @Override
    boolean save(OmsOutboundItem entity);

    /**
     * 根据code更新实体
     * @param entity
     * @return
     */
    int updateByCode(OmsOutboundItem entity);

    /**
     * 查询列表
     * @param OutboundItemDTO
     * @return
     */
    List<OmsOutboundItemVO> queryList(OmsOutboundItemDTO OutboundItemDTO);

    /**
     * 查询合计,包含总数
     * @param OutboundItemDTO
     * @return
     */
    OmsOutboundItemVO queryListSum(OmsOutboundItemDTO OutboundItemDTO);
}
